package com.nwpu.server.authserver.vo;

import com.nwpu.server.common.valid.*;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @Author: YuXingZh
 * @Date: Created in 18:52 2022-05-09
 * @Description: 密码表单
 */
@Data
public class PasswordForm {
    /**
     * 原密码
     */
    @NotNull(groups = {RegisterGroup.class, UpdateUserGroup.class, LoginGroup.class})
    @ListValue(groups = {RegisterGroup.class, UpdateUserGroup.class, LoginGroup.class})
    private String password;
    /**
     * 新密码
     */
    @NotNull(groups = {RegisterGroup.class, UpdateUserGroup.class, LoginGroup.class})
    @ListValue(groups = {RegisterGroup.class, UpdateUserGroup.class, LoginGroup.class})
    private String newPassword;

}

